FROM python:3-alpine

RUN apk add --no-cache --virtual .build-deps \
      gcc \
      g++ \
      musl-dev \
 && pip install locustio pyzmq protobuf \
 && apk del .build-deps \
 && apk add --no-cache \
      git \
      libgcc \
      libstdc++ \
      openssh-client

COPY data/ /root/
RUN chmod 755 /root/run.sh \
  && chmod 600 /root/.ssh/id_rsa

WORKDIR /root

EXPOSE 8089 5557 5558

CMD ["./run.sh"]
